<template>
    <div class="box">
        
       
        <div class="zhongbu">
            <router-view></router-view>
               

        </div>
        <div class="footer">
            <van-tabbar v-model="active">
                <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
                <van-tabbar-item icon="free-postage" to="/baoyou">9.9包邮</van-tabbar-item>
                <van-tabbar-item icon="qr" to="/fenlei">分类</van-tabbar-item>
                <van-tabbar-item icon="star-o" to="/shoucang">收藏</van-tabbar-item>
                <van-tabbar-item icon="user-o" to="/Mymine">我的</van-tabbar-item>
            </van-tabbar>
        </div>
        
    </div>
</template>
<script>
export default {
    data() {
        return {
            active: 0
        }
    },
}
</script>
<style scoped=''>
    
    
    .footer{height: 50px;}
    .box{
        display: flex;
        flex-direction: column
    
    }
    .zhongbu {flex: 1}
</style>
